<%@ page contentType="text/html; charset=UTF-8"   %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<table id="gridMessage">
					</table>
<script>
	$(function(){
		$("#gridMessage").datagrid({
		url:'message/MessageServlet.servlet?opt=getlist',
		fit:true,
		border:false,
		singleSelect:true,
		pagination:true,
		columns:[[
		{field:'subject',title:'标题',width:'120'},
		{field:'content',title:'内容',width:'160'},
		{field:'sendTime',title:'接收时间',width:'120',align:'right'},
		{field:'action',title:'操作',width:'80',formatter:function(i,row){
			var actions= '<a href="javascript:void();" >查看</a>&nbsp;&nbsp;';
			actions+='<a href="javascript:void();" >删除</a>';
			return actions;
		}}
		]]
		});
	});
</script>